<?php
/**
 * Created by PhpStorm.
 * User: yangjiaming
 * Date: 2018/2/5
 * Time: 15:24
 */

namespace Eagle\Service;


use Eagle\Adapter\Front\UserAdapter;
use Halo\Data\DAO;
use Halo\Validator\ParamRule;

class Index extends Base
{
    public function test()
    {
        $userDao = new DAO(new UserAdapter());
        $this->setParam('username', 'eq', 'admin', $params);
        $data = $userDao->get(['password' => '1'],$params);
    }
}